package Common.Filters;

public class NumberFilter implements IFilter
{
	public String ApplyFilter(String word)
	{
            /*
		try
		{
			Integer.parseInt(word);
			return null;
		}
		catch(NumberFormatException e)
		{
			return word;
		}
             */
            
            ///eliminate all words that have numbers...
            if(word == null)
                    return word;

            for(int i=0; i<word.length(); i++)
                    if(Character.isDigit(word.charAt(i)))
                        return null;

            return word;
	}
}